#ifndef __SCAN_H__
#define __SCAN_H__

#include "global.h"

/* MAXTOKENLEN is the maximum size of a token */
#define MAXTOKENLEN 40

struct Token {
    tokentype_t type;
    char tokenString[MAXTOKENLEN + 1];
    int lineno;
};

/* tokenString array stores the lexeme of each token */
extern char tokenString[MAXTOKENLEN+1];

/* function getToken returns the 
 * next token in source file
 * */
tokentype_t get_token(void);

#endif  // __SCAN_H__
